package com.yanqu.road.server.manager.activity.hsisland.task;

import com.yanqu.road.logic.helper.ActivityHelper;
import com.yanqu.road.server.manager.activity.hsisland.CrossHsIslandActivity;
import com.yanqu.road.server.manager.activity.hsisland.CrossHsIslandActivityMgr;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.Map;

/**
 * 活动结束后-通知区服更新商会成就
 */
public class CrossHsIslandUpdateUnionAcEndActivityTask extends GeneralTask {

    @Override
    public void doRun() {
        for (Map<Integer, CrossHsIslandActivity> crossHsIslandActivityMap : CrossHsIslandActivityMgr.getActivityMap().values()) {
            for (CrossHsIslandActivity activity : crossHsIslandActivityMap.values()) {
                try {
                    activity.updateUnionAcEndActivity();
                } catch (Exception e) {
                    getLOGGER().error("CrossHsIslandUpdateUnionAcEndActivityTask error : ", e);
                }
            }
        }
    }


}
